﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace FirstFloor.P2P
{
    /// <summary>
    /// The exception thrown when a P2P interop occurs.
    /// </summary>
    public class P2PInteropException
        : Exception
    {
        private int nr;

        /// <summary>
        /// Initializes a new instance of the <see cref="P2PException"/> class.
        /// </summary>
        /// <param name="nr">The nr.</param>
        /// <param name="message">The message.</param>
        public P2PInteropException(int nr, string message)
            : base(message)
        {
            this.nr = nr;
        }

        /// <summary>
        /// Gets the error number.
        /// </summary>
        /// <value>The nr.</value>
        public int Nr
        {
            get { return this.nr; }
        }
    }
}
